<template>
  <view class="order-detail-page">
    <!-- 订单状态 -->
    <view class="order-status-bar">
      <text class="order-status-text">已取消</text>
    </view>

    <!-- 订单详情 -->
    <view class="order-detail-card">
      <!-- 订单信息 -->
      <view class="order-section">
        <text class="order-title">七夕之夜-云杉动漫视听交响音乐</text>
        <text class="order-location">新疆人民剧场</text>
        <text class="order-date">2024/08/10 21:00</text>
        <text class="order-seat">13排21座</text>
      </view>

      <!-- 购票人信息 -->
      <view class="order-section">
        <text class="section-label">购票人</text>
        <text class="section-value">18129290467</text>
      </view>

      <!-- 配送方式 -->
      <view class="order-section">
        <text class="section-label">配送方式</text>
        <text class="section-value">电子票</text>
      </view>
    </view>

    <!-- 票品原价 -->
    <view class="order-detail-card">
      <view class="price-section">
        <text class="section-label">票品原价</text>
        <text class="section-value">120.00</text>
      </view>

      <!-- 订单信息 -->
      <view class="order-section">
        <text class="section-label">订单信息</text>
        <view class="order-info">
          <view class="order-info-row">
            <text>订单编号：</text>
            <text class="order-number">TH20240803192751148263</text>
            <text class="copy-text">复制</text>
          </view>
          <view class="order-info-row">
            <text>创建时间：</text>
            <text>2024/08/03 19:27:51</text>
          </view>
        </view>
      </view>
    </view>

    <!-- 联系客服按钮 -->
    <view class="footer">
      <button class="contact-button">联系客服</button>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style>
.order-detail-page {
  padding: 0;
  background-color: #f5f5f5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-status-bar {
  background-color: #e5e5e5;
  padding: 20px 0;
  text-align: center;
}

.order-status-text {
  font-size: 20px;
  color: #333;
}

.order-detail-card {
  background-color: #fff;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
}

.order-section {
  margin-bottom: 15px;
}

.order-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.order-location,
.order-date,
.order-seat {
  font-size: 14px;
  color: #888;
  margin-bottom: 2px;
}

.section-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.section-value {
  font-size: 16px;
  color: #000;
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-info {
  margin-top: 10px;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.order-number {
  color: #333;
  flex-grow: 1;
}

.copy-text {
  color: #007aff;
  font-size: 14px;
  margin-left: 10px;
}

.footer {
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.contact-button {
  width: 100%;
  background-color: #ff4d4f;
  color: #fff;
  padding: 15px 0;
  border-radius: 8px;
  font-size: 16px;
}
</style>
